package de.slash.jplaylistextractor.utils;

import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;

/**
 * User: Slash
 * Date: 17.03.2012
 * Time: 11:37
 */
public class Utility
{
    public String convertStackTraceToString(Exception pException)
    {
        Writer result = new StringWriter();
        PrintWriter printWriter = new PrintWriter(result);
        pException.printStackTrace(printWriter);
        return result.toString();
    }
}
